package com.objetdirect.gwt.umlapi.client.emul.impl;

import com.objetdirect.gwt.umlapi.client.emul.def.GraphicObject;
import com.objetdirect.gwt.umlapi.client.emul.def.VirtualGroup;

public class TatamiVirtualGroup implements VirtualGroup{

	private com.objetdirect.tatami.client.gfx.VirtualGroup _member;
	 
	public TatamiVirtualGroup() {
		_member = new com.objetdirect.tatami.client.gfx.VirtualGroup();
	}

	public TatamiVirtualGroup(GraphicObject aGraphicalObject) {
		 
			com.objetdirect.tatami.client.gfx.GraphicObject aGraphicObject =  (com.objetdirect.tatami.client.gfx.GraphicObject)aGraphicalObject.getInnerObject();
			_member = (com.objetdirect.tatami.client.gfx.VirtualGroup)aGraphicObject;
		
	}

	@Override
	public Object getInnerObject() 
	{
		return _member;
	}

	@Override
	public void clear() {
		_member.clear();		
	}

	@Override
	public void add(GraphicObject object) {
		TatamaiGraphicObject aTatamaiGraphicObject = (TatamaiGraphicObject)object;
		
		_member.add((com.objetdirect.tatami.client.gfx.GraphicObject)aTatamaiGraphicObject.getInnerObject());
		
	}

	@Override
	public void remove(GraphicObject object, boolean silently) {
		TatamaiGraphicObject aTatamaiGraphicObject = (TatamaiGraphicObject)object;
		_member.remove((com.objetdirect.tatami.client.gfx.GraphicObject)aTatamaiGraphicObject.getInnerObject(), silently);
		
	}

}
